package com.neusoft.ysu.elm02.mapper;

import com.neusoft.ysu.elm02.entity.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 作者：赵子鉴
 * @since 2023-08-18
 */
@Mapper
public interface DeptMapper extends BaseMapper<Dept> {
    @Select("SELECT dname FROM dept\n" +
            "where dname like CONCAT(#{dname},'%')")
    public List<String> findDnameList(String dname);
}
